06cd6d4f8a5a00c2f94255cca76f0b3e85fdc9fa,patient-user/src/test/java/gov/samhsa/c2s/patientuser/web/UserCreationControllerTest.java,UserCreationControllerTest,testActivateUser_Password_Length_Lower_Limit,#,513
Before Change
// Act and Assert
mvc.perform(post("/activations")
.contentType(MediaType.APPLICATION_JSON_UTF8)
.content(objectMapper.writeValueAsBytes(request)))
.andExpect(status().isOk())
.andExpect(jsonPath("$.id", is(patientId.intValue())))
.andExpect(jsonPath("$.lastName", is(lastName)))
After Change
// Act and Assert
mvc.perform(post("/activations")
.contentType(MediaType.APPLICATION_JSON_UTF8)
.content(objectMapper.writeValueAsBytes(request))
.header(UserCreationController.X_FORWARDED_PROTO, xForwardedProto)
.header(UserCreationController.X_FORWARDED_HOST, xForwardedHost)
.header(UserCreationController.X_FORWARDED_PORT, xForwardedPort))
.andExpect(status().isOk())
.andExpect(jsonPath("$.id", is(patientId.intValue())))
.andExpect(jsonPath("$.lastName", is(lastName)))